<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Menus : Ionize User Guide</title>

<style type='text/css' media='all'>@import url('../userguide.css');</style>
<link rel='stylesheet' type='text/css' media='all' href='../userguide.css' />

<script type="text/javascript" src="../nav/nav.js"></script>
<script type="text/javascript" src="../nav/prototype.lite.js"></script>
<script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript" src="../nav/user_guide_menu.js"></script>

<meta http-equiv='expires' content='-1' />
<meta http-equiv= 'pragma' content='no-cache' />
<meta name='robots' content='all' />
<meta name='author' content='Ionize Dev Team' />
<meta name='description' content='Ionize User Guide' />

</head>
<body>

<!-- START NAVIGATION -->
<div id="nav"><div id="nav_inner"><script type="text/javascript">create_menu('../');</script></div></div>
<div id="nav2" onclick="myHeight.toggle();"><a name="top"></a><a href="javascript:void(0);"><img src="../images/nav_toggle_darker.jpg" width="154" height="43" border="0" title="Toggle Table of Contents" alt="Toggle Table of Contents" /></a></div>
<div id="masthead">
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr>
<td><h1>Ionize User Guide Version 0.9.7</h1></td>
<td id="breadcrumb_right"><a href="../toc.html">Table of Contents Page</a></td>
</tr>
</table>
</div>
<!-- END NAVIGATION -->


<!-- START BREADCRUMB -->
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr>
<td id="breadcrumb">
<a href="http://www.ionizecms.com/">Ionize Home</a> &nbsp;&#8250;&nbsp;
<a href="../index.html">User Guide Home</a> &nbsp;&#8250;&nbsp;
Menus
</td>
<td id="searchbox"><form method="get" action="http://www.google.com/search"><input type="hidden" name="as_sitesearch" id="as_sitesearch" value="ionizecms.com/user-guide" />Search User Guide&nbsp; <input type="text" class="input" style="width:200px;" name="q" id="q" size="31" maxlength="255" value="" />&nbsp;<input type="submit" class="submit" name="sa" value="Go" /></form></td>
</tr>
</table>
<!-- END BREADCRUMB -->

<br clear="all" />


<!-- START CONTENT -->
<div id="content">

<h1>Menus</h1>

<p>Menus organize the content. </p>
<p>They are containers for pages.</p>
<p>2 menus can't be changed : "Main menu" and "System menu".</p>
<p>
	The <strong>"Main menu"</strong> is the basic menu if you only have one menu in your website.<br/>
	The <strong>"System menu"</strong> contains system pages, like the "content not found" 404 page.
</p>

<p class="important">
	Menus items are the pages contained in the menus.
</p>

<h2>Adding one menu</h2>
Go into the panel : <var>Content > Manage menus...</var>


<h2>Get one menu in views</h2>

<p>To get one menu content (pages) in views, Ionize comes with 2 tags : </p>

<p><strong>navigation</strong> : This tag provides a one level navigation.</p>
<p><strong>tree_navigation</strong> : Displays the complete tree of pages.</p>


<pre>
// Example of the navigation tag usage :
&lt;ion:navigation level="0" tag="ul" id="my_nav" class="navigation" active_class="active" />

// Result : 
&lt;ul id="my_nav" class="navigation">
&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class="active">Home&lt;/li>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;li>Services&lt;/li>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;li>About us&lt;/li>
&lt;/ul>


// Example of the tree_navigation tag usage :
&lt;ion:tree_navigation tag="ul" id="my_nav" class="navigation" active_class="active" />

// HTML Result : 
&lt;ul id="my_nav" class="navigation">
&nbsp;&nbsp;&nbsp;&nbsp;&lt;li>Home&lt;/li>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class="active">Services&lt;/li>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class="active">Webdesign&lt;/li>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li>Coding&lt;/li>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;li>About us&lt;/li>
&lt;/ul>
</pre>

<p>Look at the <a href="../tags/navigation_tags.html">Ionize navigation tag documentation</a> to see complete features of these tags.</p>


</div>
<!-- END CONTENT -->


<div id="footer">
<p>
Previous Topic:&nbsp;&nbsp;<a href=".html">-----------------------------</a>
&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
<a href="#top">Top of Page</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
Next Topic:&nbsp;&nbsp;<a href="pages.html">Pages</a>
</p>
<p><a href="http://www.ionizecms.com/">Ionize website</a></p>
</div>

</body>
</html>